import logging,yagmail
def rizhi():
    logging.basicConfig(filename='./denglu.log',level=logging.DEBUG,filemode='w+',format='%(asctime)s->%(levelname)s->%(message)s')
def emil_fasong(flie):
    emil = yagmail.SMTP(host='smtp.qq.com',user='2410811597@qq.com',password='uzwlvaboffeqecfh')
    emil.send(to='2410811597@qq.com',subject='日志报告',contents='报告代码',attachments=flie)